﻿<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>添加节点</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"	content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
{include file="public/style" /}
</head>
<body>
	<div class="x-nav">
		<span class="layui-breadcrumb"><a href="">首页</a> <a href="">系统管理</a><a><cite>添加/修改节点</cite></a></span>
		<a class="layui-btn layui-btn-small" style="line-height: 1.6em; margin-top: 3px; float: right" onclick="location.reload()" title="刷新"> <i	class="layui-icon layui-icon-refresh" style="line-height: 30px"></i></a>
	</div>
	<div class="layui-fluid">
		<div class="layui-row">
						<form class="layui-form" role="form" method="post" action="">
						<input type="hidden" name="id" value="{$Request.param.id}">
						<input type="hidden" name="nid" value="">
							<div id="main">
								 <div class="layui-form-item">
										<label class="layui-form-label" for="form-field-2"><span class="x-red">*</span>节点标题</label>
										<div class="layui-input-inline"><input type="text" name="title" value="{$info.title}"  class="layui-input" lay-verify="required" /></div>
								 </div>
								 <div class="space-4"></div>								
								 <div class="layui-form-item">
								        <label class="layui-form-label" for="form-field-2"><span class="x-red">*</span>节点名称</label>
										<div class="layui-input-inline"><input type="text" name="name" value="{$info.name}"  lay-verify="required" class="layui-input" /></div>
								  </div>
								  <div class="space-4"></div>
								  <div class="layui-form-item">
										<label class="layui-form-label" for="form-field-2">节点名称</label>
										<div class="layui-input-inline">
										   <select name="level">
										      <option value="1" {eq name="info.level" value="1"}selected="selected"{/eq}>项目</option>
										      <option value="2" {eq name="info.level" value="2"}selected="selected"{/eq}>模块</option>
										      <option value="3" {eq name="info.level" value="3"}selected="selected"{/eq}>操作</option>
										   </select>										
										</div>
									</div>
									<div class="space-4"></div>
									<div class="layui-form-item">
										<label class="layui-form-label" for="form-field-2">所属上级</label>
										<div class="layui-input-inline">
										   <select name="pid">										   
										      <option value="0">无</option>
										      {volist name="tree" id="v"}    
											     {if condition='$info["pid"] eq $v["id"]'}
											       <option value="{$v.id}" selected='selected'>{$v._name|raw}</option>
											     {else/}
											       {neq name="v.id" value="$info.id"}<option value="{$v.id}">{$v._name|raw}</option>{/neq}
								                 {/if}
								              {/volist} 
										   </select>										
										</div>
									 </div>
									 <div class="space-4"></div>									
									 <div class="layui-form-item">
										<label class="layui-form-label" for="form-field-2">状态</label>
										<div class="layui-input-inline">        
										    <select name="status">
										        <option value="1" {eq name="info.status" value="1"} selected="selected"{/eq}>启用</option>
										        <option value="0" {eq name="info.status" value="0"} selected="selected"{/eq}>关闭</option>
										    </select>
                                        </div>
								      </div>
								      <div class="space-4"></div>	
								      <div class="layui-form-item">
										 <label class="layui-form-label" for="form-field-2">排序</label>
										 <div class="layui-input-inline">        
										    <input type="text" name="sort" value="{$info.sort}" size="80" class="layui-input" />
                                         </div>
									  </div>
								</div>	
								<div class="hr hr-24"></div>								
								<div class="layui-form-item">
								   <label for="L_repass" class="layui-form-label"></label>
								   <button  class="layui-btn" lay-filter="add" lay-submit="">保存</button>
								</div>
					</form>
		      </div>
	</div>
    <script>
       layui.use(['form'],
        function() {

        });
     </script>						     
						
</body>
</html>